public class EmpEql
{
public static void main(String[] args)
{
Employee emp1 = new Employee();
Employee emp2 = emp2;
if(emp1.equals(emp2))
{
System.out.println("Equal");
//else
//System.out.println("Not equal");
}
}
}